package com.ruoyi.withdraw.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.withdraw.mapper.withdrawMapper;
import com.ruoyi.withdraw.domain.withdraw;
import com.ruoyi.withdraw.service.IwithdrawService;

/**
 * 提现申请Service业务层处理
 * 
 * @author wuxiao
 * @date 2024-12-19
 */
@Service
public class withdrawServiceImpl implements IwithdrawService 
{
    @Autowired
    private withdrawMapper withdrawMapper;

    /**
     * 查询提现申请
     * 
     * @param applyId 提现申请主键
     * @return 提现申请
     */
    @Override
    public withdraw selectwithdrawByApplyId(Long applyId)
    {
        return withdrawMapper.selectwithdrawByApplyId(applyId);
    }

    /**
     * 查询提现申请列表
     * 
     * @param withdraw 提现申请
     * @return 提现申请
     */
    @Override
    public List<withdraw> selectwithdrawList(withdraw withdraw)
    {
        return withdrawMapper.selectwithdrawList(withdraw);
    }

    /**
     * 新增提现申请
     * 
     * @param withdraw 提现申请
     * @return 结果
     */
    @Override
    public int insertwithdraw(withdraw withdraw)
    {
        return withdrawMapper.insertwithdraw(withdraw);
    }

    /**
     * 修改提现申请
     * 
     * @param withdraw 提现申请
     * @return 结果
     */
    @Override
    public int updatewithdraw(withdraw withdraw)
    {
        return withdrawMapper.updatewithdraw(withdraw);
    }

    /**
     * 批量删除提现申请
     * 
     * @param applyIds 需要删除的提现申请主键
     * @return 结果
     */
    @Override
    public int deletewithdrawByApplyIds(Long[] applyIds)
    {
        return withdrawMapper.deletewithdrawByApplyIds(applyIds);
    }

    /**
     * 删除提现申请信息
     * 
     * @param applyId 提现申请主键
     * @return 结果
     */
    @Override
    public int deletewithdrawByApplyId(Long applyId)
    {
        return withdrawMapper.deletewithdrawByApplyId(applyId);
    }

    @Override
    public int meanswithdrawByApplyId(Long applyId) {

        return withdrawMapper.meanswithdrawByApplyId(applyId);
    }
}
